package nought.com.relaceelementinhtmldemo;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewpager.widget.ViewPager;

/**
 * 监听左右滑动，切换图片和播放器
 */
public class VideoViewPager extends ViewPager {
    /**
     * 复合控件
     * @param context
     */
    public VideoViewPager(@NonNull Context context) {
        super(context);
    }

    public VideoViewPager(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }



    public void freshLayoutParams(ConstraintLayout.LayoutParams params){
        this.setLayoutParams(params);
    }


}
